<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends SignInController {
    // 主页
    public function index(){
        $this->assign("roleList", $this->getRoleList($this->getAccount()['rolepath']));
        $this->display("index");
    }

    // 加载初始化内容页
    public function main(){
        $this->display("main");
    }
    // 清除缓存
    public function clearcache(){
        sp_clear_cache();
        $this->error("清除缓存成功",U('Admin/system/index'));
    }
}